home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
text
/
edit
/
Smartindent.readme
< prev
next >
Wrap
Text File
|
1997-09-05
|
7KB
|
185 lines
Short: GoldED4 online code indention V37.5
Author: mshopf@informatik.uni-erlangen.de (Matthias Hopf)
Uploader: mshopf@informatik.uni-erlangen.de (Matthias Hopf)
Version: 37.5 beta
Type: text/edit
COPYIGHT
©1997 Matthias Hopf. All rights reserved.
Some routines are based partially on the public domain CLib package from
Andreas R. Kleinert. Thanx!
DISTRIBUTION
This package is distributed as FreeWare under the GNU license.
DESCRIPTION
This is an API client for GoldED 4 that will scan all entered text and
indent it according to its built-in rules. The scanner is quite versatile
and will also report several types of syntax errors.
Scanning will be done automatically when you press keys that could have
implications on the indentation of the current line. There is a new
ARexx command 'SMARTINDENT', too, with which you can explicitely start
the intendation process.
By default the installation script will map for the C-source filetype TAB
to 'SMARTINDENT LINE', alt-TAB to 'SMARTINDENT BLOCK', shift-TAB and
ctrl-TAB to 'TAB' and shift-ctrl-TAB to 'BACKTAB', so you don't lose the
tabulator availability.
Source code is provided and almost cleaned up. I would love to add more
indentation semantic parsers for other languages :^)
Currently known indention modes:
C (no more at the moment)
ToDo: Still does some intentions not as I would like it to, but it's
getting better. Better documentation needed. Configuration GUI
(showing indentation of example source) needed.
INSTALLATION
Doubleclick at the installer script icon. It assumes that you already
have the envCPP filetype package installed.
SYNTAX:
API startup arguments:
Template: MODE/K,DEBUG/N/K,CONFIG/M/N/K
MODE: Indention mode. When this argument is not specified or the
given mode is unknown, a list of all known indention modes
is shown in a requester.
DEBUG: One nummeric argument that specifies the debug level
(see util.h for more information)
CONFIG: Currently 7 (or less) integer values that specify
(in this order):
if (x)
....x = x+1; - Block indentation level (default: 4)
switch (x)
..{ - Brace indentation level (default: 0, here: 2)
x = x + 1;
<- case 1: - Label indentation level (default -2)
long int
..value; - Continued statement level (default 2)
value =
.0; - Continued equation level (default 1)
..../* xx */ - Standard comment level (default 4)
x=0;..../* x */ - (Absolute) in-line comment level (default 40)
'SMARTINDENT' command arguments:
Template: LINE/S,CURSOR/S,BLOCK/S
LINE: Indent current line
CURSOR: Move cursor to last indetation position in this line
BLOCK: Indent marked block
BUGS
Yes, there are some bugs left, but only according to wrong indented
lines. So far smartindent V37.5 has not crashed my Amiga at all.
Read the comment at the beginning of test_input.c and test_correct.c for
more details.
HISTORY
V37.5 beta
- Some more indention bug fixes.
- Bug fix in endless loop detection.
- Indenting code less often on pressing '/' or '*' now
(only when necessary for comment indention).
- Finally implemented routine dispatcher needed for multiple
indention modes.
V37.4 beta
- Some indention bug fixes. Should recognize all C++ words now.
V37.3 beta
- Loads of bug fixes, one even potentially harmfull
- 'test' smakefile target and test_input.c testing source file for
checking indention abilities.
V37.2 beta2
- Version information bug fixed. Installer should install the
API-client correctly now.
- Installer script reworked.
- New regedit for installation process provided. Thanx Dietmar!
V37.2 beta
- First release.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1233 595 51.7% 06-Aug-97 01:09:08 Smartindent.info
23180 11014 52.4% 06-Aug-97 01:09:26 +smartindent.api
25204 13517 46.3% 06-Aug-97 01:09:14 +regedit
17996 7017 61.0% 06-Aug-97 01:09:14 +COPYING
856 436 49.0% 06-Aug-97 01:09:08 +COPYING.info
3348 1254 62.5% 06-Aug-97 01:09:14 +Install
1608 1227 23.6% 06-Aug-97 01:09:08 +Install.info
507 256 49.5% 06-Aug-97 01:09:14 +Install_d.bat
507 256 49.5% 06-Aug-97 01:09:14 +Install_e.bat
97 78 19.5% 06-Aug-97 01:09:08 +c.api
64 64 0.0% 06-Aug-97 01:09:08 +c.indent
581 213 63.3% 06-Aug-97 01:09:08 +c.keyboard
1527 383 74.9% 06-Aug-97 01:09:10 +c.mouse
1501 369 75.4% 06-Aug-97 01:09:10 +c.mouse
3880 1883 51.4% 06-Aug-97 01:09:14 +Smartindent.readme
856 440 48.5% 06-Aug-97 01:09:08 +Smartindent.readme.info
1233 594 51.8% 06-Aug-97 01:09:08 +Source.info
3811 1234 67.6% 06-Aug-97 01:09:12 +compiler.h
856 493 42.4% 06-Aug-97 01:09:12 +compiler.h.info
6258 2240 64.2% 06-Aug-97 01:09:10 +dispatcher.c
856 493 42.4% 06-Aug-97 01:09:12 +dispatcher.c.info
835 352 57.8% 06-Aug-97 01:09:10 +dispatcher.h
856 493 42.4% 06-Aug-97 01:09:12 +dispatcher.h.info
3653 1439 60.6% 06-Aug-97 01:09:10 +LibFuncs.c
856 493 42.4% 06-Aug-97 01:09:12 +LibFuncs.c.info
1004 341 66.0% 06-Aug-97 01:09:10 +LibFuncs.h
856 493 42.4% 06-Aug-97 01:09:12 +LibFuncs.h.info
3823 1333 65.1% 06-Aug-97 01:09:10 +LibInit.c
856 493 42.4% 06-Aug-97 01:09:12 +LibInit.c.info
266 170 36.0% 06-Aug-97 01:09:12 +SCOPTIONS
856 440 48.5% 06-Aug-97 01:09:12 +SCOPTIONS.info
3847 1433 62.7% 06-Aug-97 01:09:10 +semantics.h
856 493 42.4% 06-Aug-97 01:09:12 +semantics.h.info
20700 4587 77.8% 06-Aug-97 01:09:10 +semantics_c.c
856 493 42.4% 06-Aug-97 01:09:12 +semantics_c.c.info
2459 870 64.6% 06-Aug-97 01:09:12 +smakefile
856 440 48.5% 06-Aug-97 01:09:12 +smakefile.info
3529 1374 61.0% 06-Aug-97 01:09:10 +smartindent.h
856 493 42.4% 06-Aug-97 01:09:12 +smartindent.h.info
5085 1477 70.9% 06-Aug-97 01:09:10 +StartUp.c
856 493 42.4% 06-Aug-97 01:09:12 +StartUp.c.info
5996 1994 66.7% 06-Aug-97 01:09:10 +test_correct.c
856 493 42.4% 06-Aug-97 01:09:12 +test_correct.c.info
5228 1968 62.3% 06-Aug-97 01:09:10 +test_input.c
856 493 42.4% 06-Aug-97 01:09:12 +test_input.c.info
11854 3848 67.5% 06-Aug-97 01:09:10 +util.c
856 493 42.4% 06-Aug-97 01:09:12 +util.c.info
3681 1625 55.8% 06-Aug-97 01:09:10 +util.h
856 493 42.4% 06-Aug-97 01:09:12 +util.h.info
-------- ------- ----- --------- --------
179903 73663 59.0% 07-Aug-97 08:42:10 49 files